package com.ly.heart.domain;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ly.common.annotation.Excel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.util.Date;

/**
 * 资产状态对象 erp_assets_status_info
 *
 * @author cxl
 * @date 2024-09-03
 */
@TableName ("erp_assets_status_info")
@ApiModel (value = "资产状态", description = "资产状态")
@Data
public class AssetsStatusEntity{

    /** 主键id */
    @TableId (type = IdType.INPUT)
    private String id;

    /** 创建组织 */
    @ApiModelProperty ("创建组织")
    @TableField ("create_org")
    @Excel (name = "创建组织")
    private String createOrg;

    /** 使用组织 */
    @ApiModelProperty ("使用组织")
    @TableField ("use_org")
    @Excel (name = "使用组织")
    private String useOrg;

    /** 资产状态编码 */
    @ApiModelProperty ("资产状态编码")
    @TableField ("assets_status_code")
    @Excel (name = "资产状态编码")
    private String assetsStatusCode;

    /** 资产状态名称 */
    @ApiModelProperty ("资产状态名称")
    @TableField ("assets_status_name")
    @Excel (name = "资产状态名称")
    private String assetsStatusName;

    /** 上级组 */
    @ApiModelProperty ("上级组")
    @TableField ("parent_group")
    @Excel (name = "上级组")
    private String parentGroup;

    /** 描述 */
    @ApiModelProperty ("描述")
    @TableField ("assets_status_desc")
    @Excel (name = "描述")
    private String assetsStatusDesc;

    /** 是否计提折扣 */
    @ApiModelProperty ("是否计提折扣")
    @TableField ("is_discount_provision")
    @Excel (name = "是否计提折扣")
    private Boolean isDiscountProvision;

    /** 是否默认 */
    @ApiModelProperty ("是否默认")
    @TableField ("is_default")
    @Excel (name = "是否默认")
    private Boolean isDefault;

    /** 是否可用 */
    @ApiModelProperty ("是否可用")
    @TableField ("is_used")
    @Excel (name = "是否可用")
    @TableLogic
    private Integer isUsed;

    /** 流程实例ID */
    @ApiModelProperty ("流程实例ID")
    @TableField ("instance_id")
    @Excel (name = "流程实例ID")
    private String instanceId;

    /** 状态 */
    @ApiModelProperty ("状态")
    @TableField ("state")
    @Excel (name = "状态")
    private String state;

    /** 创建人 */
    @ApiModelProperty ("创建人")
    @TableField ("create_by")
    @Excel (name = "创建人")
    private String createBy;

    /** 创建部门 */
    @ApiModelProperty ("创建部门")
    @TableField ("create_dept")
    @Excel (name = "创建部门")
    private String createDept;

    /** 创建时间 */
    @ApiModelProperty ("创建时间")
    @TableField ("create_time")
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel (name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createTime;

    /** 修改人 */
    @ApiModelProperty ("修改人")
    @TableField ("update_by")
    @Excel (name = "修改人")
    private String updateBy;

    /** 修改时间 */
    @ApiModelProperty ("修改时间")
    @TableField ("update_time")
    @JsonFormat (pattern = "yyyy-MM-dd")
    @Excel (name = "修改时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date updateTime;

    /** 禁用人 */
    @ApiModelProperty ("禁用人")
    @TableField ("disable_by")
    @Excel (name = "禁用人")
    private String disableBy;

    /** 禁用部门 */
    @ApiModelProperty ("禁用部门")
    @TableField ("disable_dept")
    @Excel (name = "禁用部门")
    private String disableDept;

    /** 反禁用人 */
    @ApiModelProperty ("反禁用人")
    @TableField ("unban_by")
    @Excel (name = "禁用人")
    private String unbanBy;

    /** 反禁用部门 */
    @ApiModelProperty ("反禁用部门")
    @TableField ("unban_dept")
    @Excel (name = "反禁用部门")
    private String unbanDept;

    /** 数据状态 */
    @ApiModelProperty ("数据状态（1正常 2禁用 ）")
    @TableField ("is_disabled")
    @Excel (name = "状态")
    private Integer isDisabled;



    /**
     * 页码
     */
    @TableField (exist = false)
    private int page = 1;

    /**
     * 每页条数
     */
    @TableField (exist = false)
    private int limit = 10;

}
